/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.alphawavesgames.engine.rendering;

import com.alphawavesgames.engine.maths.Vector2;

/**
 *
 * @author duncan
 */
public class Vertex2D
{
    protected Vector2 m_position;

    public Vertex2D()
    {
        m_position = new Vector2(0.0f);
    }

    public Vertex2D( float x, float y )
    {
        m_position = new Vector2( x, y );
    }

    public Vector2 getPosition() { return m_position; }
    public void setPosition( Vector2 pos ) { m_position = pos; }
    public float getX() { return m_position.getX(); }
    public float getY() { return m_position.getY(); }
    public void setX( float x ) { m_position.setX( x ); }
    public void setY( float y ) { m_position.setY( y ); }
}
